#ifndef SUPPLIERVIEWADDDIALOG_H
#define SUPPLIERVIEWADDDIALOG_H

#include <QtGui>
#include <core/suppliermodel.h>

class SupplierViewAddDialog : public QDialog
{
    Q_OBJECT
public:
    explicit SupplierViewAddDialog(QWidget *parent = 0);
    SupplierModel * getSupplier();

signals:

public slots:
    void onSaveButtonClicked();

protected:
    void initUiComponents();
    void initSignalsAndSlots();

    SupplierModel *supplier;

    QVBoxLayout *mainLayout;
    QGridLayout *gridLayout;

    QLabel *headerLabel;
    QLabel *subHeaderLabel;

    QLabel *nameLabel;
    QLineEdit *nameEdit;

    QLabel *countryLabel;
    QLineEdit *countryEdit;

    QLabel *contactLabel;
    QLineEdit *contactEdit;

private:
    QDialogButtonBox *buttonBox;
};

#endif // SUPPLIERVIEWADDDIALOG_H
